home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 15
/
CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso
/
S
/
CheckHTML
< prev
next >
Wrap
AmigaDOS Script File
|
1997-05-16
|
1KB
|
48 lines
.key FILE,QUIET/S
.bra {
.ket }
;
; CheckHTML Shell script
;
; Copyright © 1997 Kai Hofmann
; All rights reserved!
; Released without any explicit or implicit warranty!
;
; EMail: i07m@informatik.uni-bremen.de
; WWW : http://www.informatik.uni-bremen.de/~i07m/
;
; $VER: CheckHTML 1.3 (16.05.97)
;
if X EQ "X{FILE}"
requestfile title="Select HTML files" acceptpattern="#?.htm(l|%)" multiselect noicons >t:CheckHTMLfiles{$$}
IF NOT Warn
CountStrings t:CheckHTMLfiles{$$} TO ENV:CheckHTMLnums{$$}
LAB loop
IF NOT $CheckHTMLnums{$$} EQ 0 VAL
CheckHTML `SelectString t:CheckHTMLfiles{$$} $CheckHTMLnums{$$}` {QUIET}
eval $CheckHTMLnums{$$} -1 to env:CheckHTMLnums{$$}
skip loop back
ENDIF
delete ENV:CheckHTMLnums{$$} QUIET
ENDIF
delete t:CheckHTMLfiles{$$} QUIET
quit 0
endif
if NOT {QUIET}
echo "Checking {FILE}"
endif
search "{FILE}" DOCTYPE QUIET >NIL:
if warn
echo "No DOCTYPE found for {FILE}"
echo "Please add the following line to the top of your HTML document first:"
echo "<!DOCTYPE HTML PUBLIC *"-//W3C//DTD HTML 3.2 Final//EN*">"
else
sgmls sgml:HTML.decl "{FILE}" >NIL:
if not warn
if NOT {QUIET}
echo "Ok"
endif
endif
endif